package yzserver.sx4a.dao;

import yzserver.sx4a.domain.UserDomain;

import java.util.List;

public interface IUserDao {
    //单个用户
	public UserDomain selUser(String id);
    //所有用户
    public List<UserDomain> selAllUser(String id);

    //添加用户
    public void addUser(UserDomain user) throws Exception;

    //添加账户,岗位,职务关系
    public void addUserPosJobRel(String userid,String positionid,String jobid,String sort) throws Exception;
    //添加账户,组织关系
    public void addUserOrgRel(String userid,String orgid,String main) throws Exception;
    //删除账户,岗位,职务关系
    public void delUserPosJobRel(String userid) throws Exception;
    //删除账户,组织关系
    public void delUserOrgRel(String userid) throws Exception;
    //查询账户,岗位,职务关系
    public List selUserPosJobRel(String userid) ;
    //查询账户,组织关系
    public List selUserOrgRel(String userid);


    //修改用户
    public void editUser(UserDomain user) throws Exception;

    //修改密码
    public void operationUserPwd(String uid,String pwd) throws Exception;

    //启用/禁用账号
    public void operationUser(String uid, String enable) throws Exception;

    //删除账号
    public void delUser(String uid) throws Exception;
}
